package com.toocms.jinjuhang.utils

import android.text.TextUtils

object HtmlUtil {
    fun optimizeContent(content: String?): String {
        return if (TextUtils.isEmpty(content)) "" else "<!DOCTYPE html>" +
                "<html>" +
                "<head>" +
                "<style>*,body,html,div,p,img{border:0;margin:0;padding:0;}</style>" +
                "<style>img{max-width:100%;height:auto}</style>" +
                "</head>" +
                "<body>" + content + "</body>" +
                "</html>"
    }
}